package com.wwfish.cms.service;

import com.google.gwt.user.client.rpc.RemoteService;
import com.nexustar.gwt.widgets.client.model.PaginationModelDto;
import com.wwfish.cms.model.GeneralCodeDto;
import com.wwfish.cms.model.NewsDto;

import java.util.List;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: Tom
 * Date: 2010-8-9
 * Time: 9:36:29
 * To change this template use File | Settings | File Templates.
 */
public interface CodeManager extends RemoteService {
    List<GeneralCodeDto> getCodesByParentId(Long parentId);

    void saveAndUpdate(GeneralCodeDto dto);

    void delete(GeneralCodeDto dto);

    PaginationModelDto<GeneralCodeDto> getPageEntities(Integer begin, Integer count, Map<String, String> conditions);
}
